FROM registry.cn-shenzhen.aliyuncs.com/hdm/openjdk:11
WORKDIR /usr/src/tryme-app/
ADD ./src/main/resources/. config/
ADD ./target/tryme-app-1.0.0.jar app.jar
EXPOSE 8899
VOLUME ["/config"]
ENTRYPOINT ["java", "-jar", "-D spring.profiles.active=prod", "app.jar"]